using System;
using System.Collections;
using CE.Database;
/// <summary>
/// Summary description for UserProfileDB
/// </summary>
/// 
namespace CE.HomeRefinancing
{
    public class JBApplicationDetailDB
    {
        public JBApplicationDetailDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public Int64 Insert(JBApplicationDetail jbappdetail)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "[sprocHFJBAppDetailInsertUpdateSingleItem]";
            
            SortedList _sPara = new SortedList();
            
            #region Parameter
                _sPara.Add("@HFJBAppID",jbappdetail.HFJBAppID);
                _sPara.Add("@Salutation", jbappdetail.Salutation);
                _sPara.Add("@FirstName", jbappdetail.FirstName);
                _sPara.Add("@SurName", jbappdetail.SurName);
                _sPara.Add("@LastName", jbappdetail.LastName);
                _sPara.Add("@MiddleName", jbappdetail.MiddleName);
                _sPara.Add("@DOB", jbappdetail.DOB);
                _sPara.Add("@EmailAddress", jbappdetail.EmailAddress);
                _sPara.Add("@PostCode", jbappdetail.PostCode);
                _sPara.Add("@UnitNo", jbappdetail.UnitNo);
                _sPara.Add("@Address", jbappdetail.Address);
                _sPara.Add("@Nationality", jbappdetail.Nationality);
                _sPara.Add("@IDNO", jbappdetail.IDNO);
                _sPara.Add("@MaritalStatus", jbappdetail.MaritalStatus);
                _sPara.Add("@PhoneNo", jbappdetail.PhoneNo);
                _sPara.Add("@MobileNo", jbappdetail.MobileNo);
                _sPara.Add("@OfficeNo", jbappdetail.OfficeNo);
                _sPara.Add("@IndBusType", jbappdetail.IndBusType);
                _sPara.Add("@CurrentEmpName", jbappdetail.CurrentEmpName);
                _sPara.Add("@Gender", jbappdetail.Gender);
                _sPara.Add("@Occupation", jbappdetail.Occupation);
                _sPara.Add("@MontlyIncome", jbappdetail.MontlyIncome);
                _sPara.Add("@OtherIncome", jbappdetail.OtherIncome);
                _sPara.Add("@OtherContact1", jbappdetail.OtherContact1);
                _sPara.Add("@OtherContact2", jbappdetail.OtherContact2);
                _sPara.Add("@Status", jbappdetail.Status);
                _sPara.Add("@Info1", jbappdetail.Info1);
                _sPara.Add("@Info2", jbappdetail.Info2);
                _sPara.Add("@Info3", jbappdetail.Info3);
                _sPara.Add("@Info4", jbappdetail.Info4);
                _sPara.Add("@Info5", jbappdetail.Info5);
                _sPara.Add("@Info6", jbappdetail.Info6);
                _sPara.Add("@Info7", jbappdetail.Info7);
                _sPara.Add("@Info8", jbappdetail.Info8);
                _sPara.Add("@Info9", jbappdetail.Info9);
                _sPara.Add("@Info10", jbappdetail.Info10);
                _sPara.Add("@Info11", jbappdetail.Info11);
                _sPara.Add("@Info12", jbappdetail.Info12);
                _sPara.Add("@Info13", jbappdetail.Info13);
                _sPara.Add("@Info14", jbappdetail.Info14);
                _sPara.Add("@Info15", jbappdetail.Info15);
                _sPara.Add("@Info16", jbappdetail.Info16);
                _sPara.Add("@Info17", jbappdetail.Info17);
                _sPara.Add("@Info18", jbappdetail.Info18);
                _sPara.Add("@Info19", jbappdetail.Info19);
                _sPara.Add("@Info20", jbappdetail.Info20);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }

        public bool Update()
        {
            return true;
        }

        public bool Delete()
        {
            return true;
        }
        
    }
}